<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="description" content="" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>注册</title>
	<link rel="stylesheet" href="css/ec.css" type="text/css" />
	<link rel="stylesheet" href="css/Tbase.css" type="text/css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/jquery.validate.js"></script>
	<script type="text/javascript" src="js/jquery.validate-zh.js"></script>
	<script type="text/javascript" src="js/Tbase.js"></script>
    <script>
$(function(){
	$("#myForm").validate({
		errorElement: 'span',
		rules:{
			phoneNum:{
				required: true,
				minlength: 11,
				maxlength: 11
			},
			password: {           
				minlength:6,
				required: true
			},
			rpassword: {        
				minlength: 6,
				required: true,
				equalTo: "#password"    //匹配与xxxid元素相同的value
			}, 
		},
		messages:{
			firstname:{
				required:"这个必须填！！！！！！！！！！"
			},
			phoneNum:{
				minlength : "请输入正确的手机号码！",
				maxlength : "请输入正确的手机号码！"
			}
		}
	});
	
})
    </script>


</head>
<body>
	<div class="container allti">
		<div class="header publi">
			<div class="head">
					<img src="images/index/logo.png" alt="">
					<p>已有账户？<a href="">马上登录</a></p>
			</div>
		</div>
		<!-- 主体 -->
		<div class="content contcon">
			<div class="logo">
				<h3>注册账号</h3>
				      <form  id="myForm" method="get" action="">
				      		<label for="" class="company">企业信息</label>
                                        <ul>
                                                <li>
                                                    <label for="phoneNum">手机号</label><input type="text" placeholder="手机号码" id="phoneNum" name="phoneNum"  class="in bg1" >
                                                </li>
                                                <li>
                                                    <label for="">验证码</label><input type="text" placeholder="短信验证" name="tel" id="tel" class="in bg1" >
                                                    <input type="text" class="verify" value="验证" onclick="settime(this)" >
                                                    <script type="text/javascript"> 
							                                var countdown=60; 
							                                function settime(val) { 
							                                if (countdown == 0) { 
							                                    val.removeAttribute("disabled");    
							                                    val.value="免费获取验证码"; 
							                                    countdown = 60; 
							                                    } else { 
							                                    val.setAttribute("disabled", true); 
							                                    val.value="重发(" + countdown + ")"; 
							                                    countdown--;
							                                    setTimeout(function() { 
							                                    settime(val) 
							                                    },1000)  
							                                    } 
							                                } 
							                        </script> 
                                                </li>
                                                <li>
                                                    <label for="password">密码</label><input type="password" placeholder="密码" name="password" id="password" class="in bg1" >
                                                </li>
                                                <li>
                                                    <label for="rpassword">确认密码</label><input type="password" placeholder="确认密码" name="rpassword" id="rpassword" class="in bg1" >
                                                </li>
                                                <li  class="ch">
                                                    <input type="checkbox"><p>我已点击阅读并同意<a href="">《易生活车辆用油管理平台 企业版服务协议》</a></p>
                                                </li>
                                                <li onclick="login()" class="desi"><input type="button" value="注册"></li>  
                                        </ul>
                                        
                     </form>
			</div>
		</div>
			<!-- 底部 -->
			<div class="footer ind inn">
				<div class="foot">
				<p>&copy;2015-2016北京易生活网络科技有限公司  <span> 客服电话 400-0000-0000</span></p>
				<!-- <a >︿</a> -->
				</div>
			</div>
	</div>
</body>
</html>